﻿import request from '@/utils/request';
// list
export const yonghuList = (params) => {
    return request({
        url: '/yonghu/page',
        method: 'post',
        data: params,
    })
};
export const yonghuDetail = (id) => {
    return request({
        url: '/yonghu/'+id,
        method: 'get',
    })
};
// add
export const yonghuSave = (params) => {
    return request({
        url: '/yonghu',
        method: 'post',
        data: params,
    })
};
// updt
export const yonghuEdit = (params) => {
    return request({
        url: '/yonghu',
        method: 'put',
        data: params,
    })
};
// delete
export const yonghuDelete = (id) => {
    return request({
        url: '/yonghu/'+id,
        method: 'delete',
    })
};
// pldel
export const yonghuDeleteList = (yonghus) => {
    return request({
        url: '/yonghu/deleteList',
        data:{list:yonghus},
        method: 'post',
    })
};
// all
export const yonghuAllList = () => {
    return request({
        url: '/yonghu',
        method: 'get',
    })
};
export const yonghuUpdatePassword = (params) =>{ return request({ url: `/yonghu/updatePassword`, method: 'put',data: {...params,mima:params.password}, })};
